package com.woniuxy.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 * @author: mayuhang  <br/>
 * Date: 2021/3/17:15:36  <br/>
 * Description:生产者消费者模式的配置,包括一个队列和两个对应的消费者
 */
@Configuration
public class ProducerConsumerConfig {
	
	 	@Bean
	    public Queue myQueue() {
	       Queue queue=new Queue("myqueue");
	       return queue;
	    }
	    
}
